package oop.y2024.m10.d29;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-10-29
 * Time: 10:13
 */
public class Main {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.bark();
        dog.eat();
        Circle circle=new Circle();
        System.out.println(circle);
    }

}

class Animal{
    int age=3;
    public void eat(){
        System.out.println("狗在吃");
    }
}

class Dog extends Animal{
    public void bark(){
        System.out.println("狗在叫");
    }
}

class Circle{
    double radius=10;
    public String toString(){
        return "circle:"+radius;
    }
}
